<?php 
	$keyword = $this->arrParam['keyword'];
?>
<hgroup class="page-head">
	<h1>Kết quả tìm kiếm với <span>"<?php echo $keyword?>"</span></h1>
</hgroup>
<div id="container">
	<div class="official clearfix">
		<div id="content">
		<?php 
		if(!empty($this->Items)):
			$filter = new Zendvn_Filter_Filter();
			foreach ($this->Items as $k => $v):
				$id = $v['id'];
				$name = Zendvn_Filter_Filter::filterContent($v['name'], 'filter');
				$description = Zendvn_Filter_Filter::filterContent($v['description'], 'filter');
				$data = $v['data'];
				if($data == 'doctor'){
					$linkItem = $this->cmsUrl(array(
												'module' => 'default',
												'controller' => 'index',
												'action' => 'doctor-detail',
												'id' => $id,
												'title' => $filter->filter($name)
										), 'doctor-detail');
				}elseif($data == 'service'){
					$linkItem = $this->cmsUrl(array(
												'module' => 'default',
												'controller' => 'index',
												'action' => 'service-detail',
												'id' => $id,
												'title' => $filter->filter($name)
										), 'service-detail');
				}	
		?>
			<article class="page type-page status-publish hentry clearfix">
				<header><h3 class="post-title"><a href="<?php echo $linkItem?>"><?php echo $name?></a></h3></header>
				<p><?php echo $description?></p>
				<a href="<?php echo $linkItem?>"class="readmore">Xem thêm</a>
			</article>
		<?php endforeach;?>
		<?php 
			$arrParam = array(
					'module' => 'default',
					'controller' => 'index',
					'action' => 'search',
					'keyword' => $this->arrParam['keyword'],
					'router' => 'search-page'
			);
			echo $this->paginationControl($this->panigator,'Sliding','paning.php',array('arrParam'=>$arrParam));
		?>
		<?php endif;?>
		</div>
		<?php echo $this->render('includes/right-section.php')?>
	</div>
</div>
